package com.example.mall.dao;

import com.example.mall.entity.Good;

import java.util.List;

public interface GoodDAO {
    List<Good> selectAll();
    Good selectOneById(Integer id);
    List<Good> selectByCategoryId(Short categoryId);
    List<Good> query(Integer page, Integer pageSize, Good good);
    void save(Good order);
    void delete();
    void update(Good order);
}
